/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package BUS;

import DAO.ToaDAO;
import DTO.ToaDTO;
import java.sql.ResultSet;

/**
 *
 * @author PC
 */
public class ToaBUS {
     public static ResultSet  TimKiemTatCa() {
        return ToaDAO.TimKiemTatCa();
    }
     public static boolean KiemTraTonTai(String MaToa)
    {
        return ToaDAO.KiemTraTonTai(MaToa);
    }
     public static boolean Them(ToaDTO n) {
         return ToaDAO.Them(n);
     }
    public static boolean Xoa(String id) {
         return ToaDAO.Xoa(id);
     }
  

   public static boolean Update(ToaDTO NV,String id){
          return ToaDAO.Update(NV,id);
     }

    public static boolean Update(ToaDTO ND) {
        throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
    }
}
